<?php
namespace app\common\validate\Subject;
use think\Validate;
class Chapter extends Validate{
    protected $rule = [
        'title' => ['require'],
        'subid'=>['require'],
        'url' =>['require']
    ];

    // 错误提示信息
    protected $message = [
        'title.require' => '章节标题必填',
        'subid.require' => '课程id必填',
        'url.require'=>'视频必传'

    ];
}